<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>房间信息管理</title>
	<meta name="decorator" content="default"/>
	
	<script type="text/javascript" src="${ctxStatic}/js/tdc/tdcRoomForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	
</head>
<body>
	<ul class="nav nav-tabs">
	<%-- 	<li><a href="${ctx}/room/tdcRoom/">房间信息列表</a></li> --%>
		<li class="active"><a href="${ctx}/room/tdcRoom/form?id=${tdcRoom.id}">房间信息<shiro:hasPermission name="room:tdcRoom:edit">${not empty tdcRoom.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="room:tdcRoom:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="tdcRoom" action="${ctx}/room/tdcRoom/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">房间号：</label>
			<div class="controls">
				<form:input path="roomNumber" htmlEscape="false" maxlength="10" class="input-xlarge required" style="width:170px" placeholder="请输入房间号" id="roomNumberId"/>
				<span class="help-inline"><font color="red" id="nameInfo">*</font> </span>
				<span class="help-inline"><font >(如A1010)</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">房间类型：</label>
			<div class="controls">
				<form:select path="roomType" style="width:170px">
				<form:option value="会见" label="请选择"/>
					<form:option value="提审提讯" label="提审提讯"/>
					<form:option value="会见" label="会见"/>
					
					<form:options items="${fns:getDictList('marital')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">房间状态：</label>
			<div class="controls">
				<form:select path="roomStatus" style="width:170px">
				<form:option value="空闲中" label="请选择"/>
					<form:option value="使用中" label="使用中"/>
					<form:option value="空闲中" label="空闲中"/>
					
					<form:options items="${fns:getDictList('marital')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="room:tdcRoom:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>